home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / util / misc / ispell31.lha / ispell-3.1.18src / languages / norsk / Makefile next >
Makefile  |  1994-11-02  |  5KB  |  149 lines

  1. #
  2. # $Id: Makefile,v 1.7 1994/08/31 05:58:48 geoff Exp $
  3. #
  4. # Copyright 1993, Geoff Kuenning, Granada Hills, CA
  5. # All rights reserved.
  6. #
  7. # Redistribution and use in source and binary forms, with or without
  8. # modification, are permitted provided that the following conditions
  9. # are met:
  10. #
  11. # 1. Redistributions of source code must retain the above copyright
  12. #    notice, this list of conditions and the following disclaimer.
  13. # 2. Redistributions in binary form must reproduce the above copyright
  14. #    notice, this list of conditions and the following disclaimer in the
  15. #    documentation and/or other materials provided with the distribution.
  16. # 3. All modifications to the source code must be clearly marked as
  17. #    such.  Binary redistributions based on modified source code
  18. #    must be clearly marked as modified versions in the documentation
  19. #    and/or other materials provided with the distribution.
  20. # 4. All advertising materials mentioning features or use of this software
  21. #    must display the following acknowledgment:
  22. #      This product includes software developed by Geoff Kuenning and
  23. #      other unpaid contributors.
  24. # 5. The name of Geoff Kuenning may not be used to endorse or promote
  25. #    products derived from this software without specific prior
  26. #    written permission.
  27. #
  28. # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
  29. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  30. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  31. # ARE DISCLAIMED.  IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
  32. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  33. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  34. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  37. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  38. # SUCH DAMAGE.
  39. #
  40. # This makefile is an example of how you might write a makefile for a
  41. # simple language which has only a single dictionary available.  For
  42. # an example of a complex makefile, look at the makefile for English.
  43. #
  44. # $Log: Makefile,v $
  45. # Revision 1.7  1994/08/31  05:58:48  geoff
  46. # Create directories before installing into them.
  47. #
  48. # Revision 1.6  1994/02/22  06:09:09  geoff
  49. # Add SHELLDEBUG.
  50. #
  51. # Revision 1.5  1994/02/07  06:07:57  geoff
  52. # Add a dummy else clause to shell if-test for Ultrix
  53. #
  54. # Revision 1.4  1994/01/25  07:12:48  geoff
  55. # Get rid of all old RCS log lines in preparation for the 3.1 release.
  56. #
  57. #
  58.  
  59. SHELL = /bin/sh
  60. MAKE = make
  61.  
  62. CONFIG        =    ../../config.sh
  63. PATHADDER    =    ../..
  64. BUILDHASH    =    ../../buildhash
  65. UNSQ        =    ../../unsq
  66. FIX8BIT        =    ../fix8bit
  67.  
  68. #
  69. # The following variables make it easy to adapt this Makefile to
  70. # numerous languages.
  71. #
  72. LANGUAGE    =    norsk
  73. DICTIONARY    =    $(LANGUAGE).sml
  74. HASHFILE    =    $(LANGUAGE).hash
  75.  
  76. #
  77. # The following variables may be overridden by the superior Makefile,
  78. # based on the LANGUAGES variable in config.X.
  79. #
  80. AFFIXES    =    $(LANGUAGE).aff
  81.  
  82. #
  83. #    Set this to "-vx" in the make command line if you need to
  84. #    debug the complex shell commands.
  85. #
  86. SHELLDEBUG = +vx
  87.  
  88. all:    $(HASHFILE)
  89.  
  90. install: all $(CONFIG)
  91.     @. $(CONFIG); \
  92.       set -x; \
  93.       [ -d $$LIBDIR ]  ||  (mkdir $$LIBDIR; chmod 755 $$LIBDIR); \
  94.       cd $$LIBDIR; rm -f $(LANGUAGE).aff $(HASHFILE)
  95.     @. $(CONFIG); \
  96.       set -x; \
  97.       cp $(LANGUAGE).aff $(HASHFILE) $$LIBDIR
  98.     @. $(CONFIG); \
  99.       set -x; \
  100.       cd $$LIBDIR; \
  101.       chmod 644 $(LANGUAGE).aff $(HASHFILE)
  102.  
  103. $(HASHFILE):    $(BUILDHASH) $(AFFIXES) $(DICTIONARY)
  104.     rm -f $(HASHFILE)
  105.     $(BUILDHASH) $(DICTIONARY) $(AFFIXES) $(HASHFILE)
  106.  
  107. $(AFFIXES):    $(LANGUAGE).7bit $(FIX8BIT)
  108.     $(FIX8BIT) -8 < $(LANGUAGE).7bit > $(AFFIXES)
  109.  
  110. $(FIX8BIT):    ../fix8bit.c
  111.     cd ..; $(MAKE) fix8bit
  112.  
  113. #
  114. #    The following dependency can be executed when ispell is unpacked,
  115. #    to unpack the dictionaries.
  116. #
  117. unpack:    $(AFFIXES)
  118.  
  119. $(UNSQ):
  120.     set +e; \
  121.     set $(SHELLDEBUG); \
  122.     if [ ! -x $(UNSQ) ]; \
  123.     then \
  124.         set -e; \
  125.         cd ../..; \
  126.         $(MAKE) unsq; \
  127.     else \
  128.         : ; \
  129.     fi
  130.  
  131. clean:
  132.     rm -f core *.hash *.stat *.cnt
  133.  
  134. #
  135. #    The following target is used in the English makefile, and is
  136. #    required to be present in all other language Makefiles as
  137. #    well, even though it doesn't have to do anything in those
  138. #    directories.
  139. #
  140. kitclean:
  141.  
  142. #
  143. #    The following target is used in the English makefile, and is
  144. #    required to be present in all other language Makefiles as
  145. #    well, even though it doesn't have to do anything in those
  146. #    directories.
  147. #
  148. dictclean:
  149.